<link rel="stylesheet" href="css/theme_m.css"/>
<!-- <link rel="stylesheet" href="css/resetui.css"/> -->
<link rel="stylesheet" href="css/theme.css"/>
    <div class="wrapper">
	<h3 class="mc_title">
            <span class="mctit_1"><span class="mctit_2">栏目编辑</span></span>
        </h3>
        <div id="sceneryBox" class="ui-box mt10 fn-clear"> 
            <div class="ui-box-container">
                <div class="ui-box-content">
                <form name="mainForm" id="mainForm" class="ui-form" method="post" action="call/uploadThumbImage_d.php" enctype="multipart/form-data" target="hideFrame">  

                <input type="hidden" name="upload_mth" id="upload_mth" value="1"/>
                <input type="hidden" name="action" value="createNewColumn"/>
                <input type="hidden" name="ptype" value="<?=$ptype?>"/>
                <fieldset>
                     <div class="ui-form-item"> 
                        <label class="ui-label">
                        栏目模块:
                        </label>
                        <input type="hidden" value="<?=$jdata['area']?>" name="area"/>
                        <select style="width:120px;" name="custom0">
                            <option value="1" <?if($jdata['custom_made']==0)echo 'selected="selected"'?>>清新之旅</option>
                            <option value="2" <?if($jdata['custom_made']==1)echo 'selected="selected"'?>>住宿主题</option>
                            <option value="3" <?if($jdata['custom_made']==2)echo 'selected="selected"'?>>精彩云秀</option>
                            <option value="4" <?if($jdata['custom_made']==3)echo 'selected="selected"'?>>娱乐美食</option>
                            <option value="5" <?if($jdata['custom_made']==4)echo 'selected="selected"'?>>游客服务</option>
                        </select>
                    </div>
                    <?for($j=0;$j<5;$j++):?>
                     <div class="ui-form-item_l">
                        <label class="ui-label">
                            <span class="ui-form-required">主题名称:</span><?=$FieldList[$ptype]['title']?>
                        </label>
                        <input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w160" data-required="2" id="mainTitle0" name="mainTitle0[]" type="text" autofocus value="<?=$jdata['title']?>">

                    </div>
                    <div style="clear:both;"></div>
                    <div class="ui-form-item_l">
                        <label class="ui-label">
                            <span class="ui-form-required">主题详情:</span><?=$FieldList[$ptype]['title']?>
                        </label>
                        <textarea id="theme_x" class="w190" name="topic0[]" ></textarea>
                    </div>
                    <div style="clear:both;"></div>
                    <?for($i=0;$i<4;$i++):?>
                    <!--图片上传-->
                    <div class="ui-form-item" style="position: relative;">
                        <input type="hidden" class="thumb_img" value="" name="thumb_img[]"/>
                        <label class="ui-label">
                            <span class="ui-form-required"></span>主题图片:
                        </label>
                        <a class="lnk_prv" target="_blank" title="点击查看原图" href="<?=$v?>">
                        <img style="width:240px;height:160px;" src="<?=$v?>" class="preview" />
                        </a>
                        <div class="uploadImg">
                        <p class="title">重新上传缩略图：</p>
                        <input type="file"  class="imgup"/>
                        <input type="button" class="BtnUpload" value="上传" class="ui-button ui-button-swhite"/>
                        <p class="ui-form-explain">点击上传JPG或GIF格式的图片,<br/>建议图片尺寸：宽1900像素，高628像素</p>
                        <p class="waitingUpload" class="ui-form-other"></p>
                        </div>
                        <p class="ui-form-explain">最佳尺寸为1900*628px</p>
                    </div>
                    <!--图片上传结束-->                   
                    <?endfor;?>
                    <?endfor;?>
                    <div style="clear:both;"></div>
                    <div class="ui-form-item"><?=$saveBtn?></div>
                </fieldset>
                </form>
            </div>
        </div>
    </div> 
</div>
<ul id="mainAreas"></ul>
<iframe src="about:blank" style="display: none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>
<script type="text/javascript" src="js/prod_pub.js"></script>
<script type="text/javascript" src="js/yunding/upjs.js"></script>